<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>数据库数据源管理</title>
<link rel="stylesheet" type="text/css" href="../../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../css/colorReset.css" />

<style type="text/css">
#progressbar {
	display: none;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	opacity: 0.6;
	filter: alpha(opacity = 60);
	background-color: #ffffff;
	/*background-color:#979797;*/
	z-index: 100;
}

#progressbar_tips {
	display: none;
	line-height: 30px;
	font-size: 16px;
	color: #000000;
	font-weight: bold;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	z-index: 101;
}

#progressbar_tips p {
	padding: 0 0 0 295px;
}

#progressbar_tips img {
	display: block;
	margin: 50px auto 0 auto;
	width: 50px
}
</style>
<script>
	
	
</script>

</head>

<body>

	<div class="main">
		<!-- 检索区域开始 -->
		<div class="sel_div">
			<table cellpadding="0" cellspacing="0" class="sel_con">
				<tr>
					<th colspan="5">数据检索</th>
				</tr>
				<tr>
					<td><label>所属领域：</label> <input id="comboxSearchFieldName"
						name="comboxSearchFieldName" class="text" /></td>
					<td><label>系统名称：</label> <input type="text"
						name="comboxSearchForFieldSystemName"
						id="comboxSearchForFieldSystemName" class="text" /></td>
					<td><label>数据库类型：</label> <input id="comboxSearchDatabaseType"
						name="comboxSearchDatabaseType" class="text" /></td>
					<td><label>数据源名称：</label> <input class="text"
						id="txtSearchDataSourceName" name="txtSearchDataSourceName" /></td>
					<td rowspan="1">
						<button class="query_btn easyui-linkbutton" iconCls="icon-search"
							onclick="search()">查询</button>
					</td>
				</tr>
				<tr>
					<td><label>主机：</label> <input type="text"
						name="txtSearchHostName" id="txtSearchHostName" class="text" /></td>
					<td><label>数据库名：</label> <input id="txtSearchDatabaseName"
						name="txtSearchDatabaseName" class="text" /></td>
					<td><label>是否为集群：</label> <input id="searchIsCluster"
						name="searchIsCluster" class="text" /></td>
					<td></td>

					<td>
						<button class="query_btn easyui-linkbutton" iconCls="icon-reset"
							onclick="onReset()">重置</button>
					</td>
				</tr>
			</table>



		</div>

		<!-- 检索区域结束 -->

		<div class="data_con">
			<div id="toolbox" style="padding: 5px; height: 25px">
				<div style="margin-bottom: 5px; float: left">
					<a href="javascript:void(0)" onclick="add()"
						class="easyui-linkbutton" id="toolbar_add" iconCls="icon-add"
						plain="true">新增</a> <a href="javascript:void(0)"
						onclick="update()" class="easyui-linkbutton" id="toolbar_modify"
						iconCls="icon-edit" plain="true">修改</a> <a
						href="javascript:void(0)" onclick="del()"
						class="easyui-linkbutton" id="toolbar_delete"
						iconCls="icon-remove" plain="true">刪除</a>
					<!--<a 
					href="javascript:void(0)" 
					onclick="import_link()" 
					class="easyui-linkbutton" 
					id="toolbar_import" 
					iconCls="icon-undo" 
					plain="true">导入</a>-->
				</div>
			</div>
			<table id="datagrid" style="height: 345px"
				data-options="fitColumns:true,toolbar:'#toolbox'">
			</table>


		</div>

	</div>
	<div id="win" class="easyui-window" title="数据库数据源管理-新增"
		style="width: 730px; height: auto; top: 20px"
		data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
		<form id="addForm" method="post">
			<!--源数据库-->

			<div id="progressbar"></div>
			<div id="progressbar_tips">
				<img src="../../images/progressbar.gif" alt="" />
				<p>
					测试连接中，请稍候<span id="progressbar_point"></span>
				</p>
			</div>
			<div class="popup_con">
				<ul>
					<li><label for="comboxFieldName" class="label">所属领域：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" id="comboxFieldName"
								name="comboxFieldName" class="text" />
						</div></li>
					<li><label for="txtSystemName" class="label">系统名称：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text"
								name="txtSystemName" id="txtSystemName" class="text" />
						</div></li>
					<li><label for="comboxDatabaseType" class="label">数据库类型：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" id="comboxDatabaseType"
								name="comboxDatabaseType" class="text" />
						</div>
						<div id="cluster" class="input_con"
							style="padding-left: 5px; line-height: 25px; vertical-align: middle;">
							<input type="checkbox" name="iscluster" id="iscluster" /> <label
								for="iscluster">是否为集群</label>
						</div></li>
					<li><label for="txtDataSourceName" class="label">数据源名称：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text"
								name="txtDataSourceName" id="txtDataSourceName"
								data-options="required:true,validType:['unnormal','maxLength[255]']"
								missingMessage="数据源名称不能为空!" />
						</div></li>
					<li><label for="txtHostName" class="label">主机：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text"
								name="txtHostName" id="txtHostName" missingMessage="主机不能为空!"
								invalidMessage="主机名称格式不正确!" />
						</div></li>
					<li><label for="txtAcount" class="label">端口：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text" name="txtPort"
								id="txtPort" missingMessage="端口不能为空!"
								invalidMessage="端口不合法，请输入正确的端口号（0~65535）!" />
						</div></li>
					<li><label for="remark" class="label">数据库名：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text"
								name="txtDatabaseName" id="txtDatabaseName"
								missingMessage="数据库名不能为空!" />
						</div></li>
					<li><label for="txtAcount" class="label">账号：</label>
						<div class="input_con">
							<input class="easyui-validatebox text" type="text"
								name="txtAcount" id="txtAcount"
								missingMessage="账号不能为空，且以字母开头，允许1-16字节，允许字母数字下划线"
								invalidMessage="账号不合法（字母开头，允许1-16字节，允许字母数字下划线）" />
						</div></li>
					<li><label for="txtPassword" class="label">密码:</label>
						<div class="input_con">
							<input id="txtPassword" name="txtPassword" type="password"
								class="easyui-validatebox text"
								data-options="required:true,validType:'maxLength[255]'"
								missingMessage="密码不能为空！" />
						</div></li>

					<li><label for="remark" class="label">备注：</label>
						<div class="input_con">
							<textarea class="easyui-validatebox text" id="remark"
								name="remark" data-options="validType:'maxLength[100]'"></textarea>
						</div></li>
				</ul>
			</div>
		</form>
		<div id="buttons" class="button_con">

			<a href="javascript:void(0)" onclick="testLink()"
				class="easyui-linkbutton" id="test_link" iconCls="icon-ok"
				plain="true">测试连接</a> <a href="javascript:void(0)" onclick="save()"
				class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
				plain="true">保存</a> <a href="javascript:void(0)" onclick="rePage()"
				class="easyui-linkbutton" id="instance_cancel" iconCls="icon-cancel"
				plain="true">取消</a>
		</div>
	</div>
	<!--导入-->
	<div id="import_link" title="导入">
		<div class="import_con">
			<label>文件地址：<input type="file" id="importLinkFile" /></label>
		</div>
		<div id="buttons_inport" class="button_con">
			<a href="javascript:void(0)" class="easyui-linkbutton" id=""
				iconCls="icon-ok" plain="true">确定导入</a>
		</div>
	</div>
	<script type="text/javascript" src="/webjars/json3/3.3.2/json3.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../../js/cook/public.js"></script>
	<script type="text/javascript" src="../../js/cook/constants.js"></script>
	<script type="text/javascript" src="../../js/cook/FormValidate.js"></script>
	<script type="text/javascript" src="../../js/rsa/security.js"></script>
	<script type="text/javascript" src="../../js/rsa/rsaly.js"></script>
	<script type="text/javascript"
		src="../../js/cook/LedgerManagement/FieldSystemDataSourceManage.js"></script>
</body>
</html>



